package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 by_news
 * 
 * @author ruoyi
 * @date 2024-01-16
 */
public class ByNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private int id;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 创建日期 */
    @Excel(name = "创建日期")
    private String createDate;

    /** 更新日期 */
    @Excel(name = "更新日期")
    private String updateDate;

    /** 分类id */
    @Excel(name = "分类id")
    private String categoryId;

    /** 题目 */
    @Excel(name = "题目")
    private String title;

    /** 是否外链 */
    @Excel(name = "是否外链")
    private String isOuturl;

    /** 是否飘窗 */
    @Excel(name = "是否飘窗")
    private String isBaywindow;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long hits;

    /** 是否发布0未发布1发布 */
    @Excel(name = "是否发布0未发布1发布")
    private Long isPublish;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 摘要 */
    @Excel(name = "摘要")
    private String abstractz;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keywords;

    /** 封面图片路径 */
    @Excel(name = "封面图片路径")
    private String coverImgPath;

    /** 正文 */
    @Excel(name = "正文")
    private String content;

    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }
    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }
    public void setCreateDate(String createDate) 
    {
        this.createDate = createDate;
    }

    public String getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(String updateDate) 
    {
        this.updateDate = updateDate;
    }

    public String getUpdateDate() 
    {
        return updateDate;
    }
    public void setCategoryId(String categoryId) 
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId() 
    {
        return categoryId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIsOuturl(String isOuturl) 
    {
        this.isOuturl = isOuturl;
    }

    public String getIsOuturl() 
    {
        return isOuturl;
    }
    public void setIsBaywindow(String isBaywindow) 
    {
        this.isBaywindow = isBaywindow;
    }

    public String getIsBaywindow() 
    {
        return isBaywindow;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setHits(Long hits) 
    {
        this.hits = hits;
    }

    public Long getHits() 
    {
        return hits;
    }
    public void setIsPublish(Long isPublish) 
    {
        this.isPublish = isPublish;
    }

    public Long getIsPublish() 
    {
        return isPublish;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setAbstract(String abstractz)
    {
        this.abstractz = abstractz;
    }

    public String getAbstract() 
    {
        return abstractz;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setCoverImgPath(String coverImgPath) 
    {
        this.coverImgPath = coverImgPath;
    }

    public String getCoverImgPath() 
    {
        return coverImgPath;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publishDate", getPublishDate())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("categoryId", getCategoryId())
            .append("title", getTitle())
            .append("isOuturl", getIsOuturl())
            .append("isBaywindow", getIsBaywindow())
            .append("author", getAuthor())
            .append("hits", getHits())
            .append("isPublish", getIsPublish())
            .append("sort", getSort())
            .append("abstract", getAbstract())
            .append("keywords", getKeywords())
            .append("coverImgPath", getCoverImgPath())
            .append("content", getContent())
            .toString();
    }
}
